<!DOCTYPE html>
<html>
    <head>
	
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/> 
        <title>条形码打印</title>
<link rel="stylesheet" href="Public/images/buttons.css">
</head>
<body>
    <div id="header">
		
			<input  class="button button-highlight button-pill button-large" type="button" name="button_print" value="打印" id="printing">
			<h1 style="font-size:30px">数量：<php> echo count($list); </php></h1><br><br>
	</div>
<volist name="list" id="vo">
<div style="height:90px;margin:20px;float:left">
<img src="{:U('admin/Order/createBarCode',array('sn'=>$vo['sn']))}">
</div>
</volist>
<script>
	window.onload=function(){
		var printing= document.getElementById("printing");
		var header= document.getElementById("header");
		printing.onclick=function(){
			header.style.display="none";
			window.print();
			header.style.display="block";
		}
	}
</script>
 </html>